{# Copyright (c) 2006-2007, PreFab Software Inc. #}


{% extends "blog/tools/tools_base.html" %}

{% load prefab_tags i18n %}

{% block extrastyle %}
<script type="text/javascript" src="/media/js/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="/media/css/table.css" />
<script type="text/javascript" src="/media/js/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
            $('#entries').tablesorter(
                {
                    headers: {2: {sorter: false}, 3: {sorter:false} },
                    dateFormat: 'dd/mm/yyyy hh:MM',
                    sortList: [[1,1],[0,0]]
                }
                );
    });
</script>
{% endblock %}

{% block "browsertitle" %}{% trans "All entries" %}{% endblock %}

{% block path %} &rsaquo; {% trans "Entries" %}{% endblock %}

{% block content %}
<div class="list_links">{% trans "Other links" %}
<div class="sub">
    <a href="{% setting 'BLOG_ROOT' %}tools/entry/add/">{% trans "Add a new entry" %}</a>
</div>
</div>
<table id="entries" class="tablesorter">
<thead>
<tr>
    <th>{% trans 'Titular' %}</th>
    <th>{% trans "Data" %}</th>
    <th>{% trans "Imatge"%}</th>
    <th>{% trans "Trackbacks" %}</th>
</tr>
</thead>

<tbody>
{% for entry in entries %}
<tr>
    <td><a href="{% setting 'BLOG_ROOT' %}tools/entry/{{ entry.id }}/">{{ entry.headline }}</a></td>
    <td nowrap>{{ entry.pub_date|date:"j/m/y H:i" }}</td>
    <td>{{ entry.image }}</td>
    <td><a href="/blogmaker/{{entry.id}}/postTrackbacks/">{% trans "Trackbacks" %}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
